from django.db import models
from biglotto.infrastructure.models import BaseModel, Address

class User(BaseModel):

  username = models.CharField(max_length=50,db_index=True)
  password = models.CharField(max_length=50)

  class Meta:
    db_table = 'tbl_users'

class WebUser(User):
  
  name = models.CharField(max_length=50)
  lastname = models.CharField(max_length=50)
  birthday = models.DateField()
  email = models.EmailField(max_length=150)
  address = models.ForeignKey(Address)
  
  
  class Meta:
    db_table = 'tbl_webuser'